﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="VisiblePropertiesWindow.aspx.cs" 
    Inherits="Medianamik.UI.Web.ModalWindows.VisiblePropertiesWindow" 
    MasterPageFile="~/Medianamik/MasterPages/MedianamikModalWindow.Master"%>
<%@ Import Namespace="Medianamik.Globalization"%>

<asp:Content ID="HeaderContentHolder" runat="server" ContentPlaceHolderID="HeaderContentHolder">
    <telerik:RadScriptBlock runat="server" ID="scriptBlock"><script type="text/javascript">
        //<![CDATA[
        function GetRadWindow()
        {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function Cancel_Clicked()
        {
            var oWindow = GetRadWindow();
            oWindow.argument = null;
            oWindow.Close();
        }

        function closeWindow(reloadType) {
            var arg = new Object();
            arg.reloadType = reloadType;
            var oWindow = GetRadWindow();
            oWindow.Close(arg);
        }
        //]]>            
	</script></telerik:RadScriptBlock>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
    <asp:ScriptManager ID="WindowScriptManager" runat="server" />
    <asp:PlaceHolder ID="mainPlaceHolder" runat="server">
        <h2><%=Translator.Translate("Medianamik_SecurityManagement", "SecurityPreviewTitle") %> : <%=CurrentGroup %></h2>
        <p><%=Translator.Translate("Medianamik_SecurityManagement", "SecurityPreviewText") %></p>
        <asp:CheckBoxList ID="VisibleProperties" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" DataTextField="Name" DataValueField="Name" />
        <p><asp:Button ID="SetVisiblePropertiesForGroupButton" runat="server" Text="<%$ Resources: Medianamik_Global, SaveButtonText %>" class="Btn" />&nbsp;
	        <input type="button" class="Btn" value="<%=Resources("Medianamik_Global", "Cancel") %>" onclick="Cancel_Clicked();" /></p>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="denyPlaceHolder" Visible="false" runat="server">
        <p><asp:Literal ID="denyMessage" runat="server" /></p>
    </asp:PlaceHolder>
</asp:Content>